Skip to main content

fitStringToWidth

Type

handler

Summary

Cuts a string to make it fit the given width

Syntax

fitStringToWidth(<pString>,<pFont>,<pMaxWidth>,<pCutChars>)

Description

Cuts a string to make it fit the given width

note

This handler is for internal use.

Parameters

NameTypeDescription

pString

String to be modified. pFont: Font to use to measure pMaxWidth: Maximum width pCutChars: String to add at the end of the string indicating the content has been mutilated